var isPalindrome = function (x) {
  if (x < 0) return false
  let initP = x
  let n = 0
  while (x !== 0) {
    n = n * 10 + (x % 10)
    x = Math.floor(x / 10)
  }
  return n === initP
}

// let bool = isPalindrome(111333111)
// console.log('是回文数？', bool)
function Parent() {}
function Child() {
  Parent.call(this)
}

Child.prototype = Object.create(Parent.prototype)
